// 宽高
.size(@w, @h) {
	width: @w;
	height: @h;
}

// 清除浮动
.clear-fix {
	zoom: 1;

	&:after {
		content: '';
		height: 0;
		line-height: 0;
		display: block;
		clear: both;
		visibility: hidden;
	}
}

// radius
.radius(@r) {
	border-radius: @r;
}

// box-sizing
.sizing {
	box-sizing: border-box;
}

// margin
.margin(@direction, @size) {
	margin-@{direction}: @size
}

// position
.position(@direction, @size) {
	@{direction}: @size
}

// border
.border-local(@direction, @color) {
	border-@{direction}: 1px solid @color
}
